package cn.zifangsky.controller;

import cn.zifangsky.model.AuthClientDetails;
import cn.zifangsky.service.AuthClientDetailsService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *接入的客户端信息表
 */
@RestController
@RequestMapping("/authClient")
@Api(tags = {"接入的客户端信息表"})
public class AuthClientDetailsController {

    @Autowired
    private AuthClientDetailsService authClientDetailsService;

    @RequestMapping("getAll")
    public Map getAuthClientDetailsAll(){
        List<AuthClientDetails> authClientDetailsAll = authClientDetailsService.getAuthClientDetailsAll();
        HashMap hashMap = new HashMap();
        hashMap.put("data",authClientDetailsAll);
        return hashMap;
    }

}
